package com.stu.removeifelse.demo01.type;

import com.stu.removeifelse.demo01.InspectionConstant;
import com.stu.removeifelse.demo01.InspectionSolver;
import org.springframework.stereotype.Component;

/**
 * @author MI
 * @ClassName ReplaceOrderGoodsSolver.java
 * @createTime 2021年08月26日 14:21:00
 */
@Component
public class ReplaceOrderGoodsSolver implements InspectionSolver {

    @Override
    public void solve(Long orderId, Long userId) {
        System.out.println("订单" + orderId + "开始进行替换商品了");
    }

    @Override
    public String[] supports() {
        return new String[]{InspectionConstant.INSPECTION_TASK_TYPE_BATCH_REPLACE_ORDER_GOODS, InspectionConstant.INSPECTION_TASK_TYPE_BATCH_REPLACE_ORDER_GOODS_SECOND};
    }
}
